<?php
namespace  App\Strategies;

use App\Helpers\DateUtils;
use App\Strategies\AppStrategy;

/**
 * Class SexStrategy
 * @package App\Strategies
 * 用户托管时间策略
 */
class SaftyStrategy extends AppStrategy
{

    //通过托管时间计算出时间错
    public static function getManaged($secure)
    {
        if ($secure == "0") {
            $time = 86400*7;
        }elseif ($secure  == "1") {
            $time = 86400*30;
        }elseif ($secure == "2") {
            $time = 86400*30*6;
        }elseif ($secure  == "3") {
            $time = 86400*30*12;
        }elseif ($secure == "4") {
            $time = 86400*30*12*200;
        }else{
            $time = 86400;
        }
        return $time;

    }
}